package com.zkyc.framework.common.pool;

import com.zkyc.framework.common.mapper.TimingMapper;
import com.zkyc.framework.common.pojo.SystemTiming;

/**
 * @author bing.bai
 * @create 2022/6/1
 */
public class TimingSaveThread implements Runnable {

    private SystemTiming systemTiming;

    private TimingMapper timingMapper;

    public TimingSaveThread(SystemTiming timing, TimingMapper timingMapper) {
        this.systemTiming = timing;
        this.timingMapper = timingMapper;
    }

    @Override
    public void run() {
        timingMapper.insert(systemTiming);
    }
}
